package com.tedu.goods.common;

import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

/**
 * <p>
 *
 * </p>
 *
 * @author Song
 * @since 2020/10/14
 */
@RestControllerAdvice
public class GlobalException {

    @ExceptionHandler(Throwable.class)
    public Response Exception(Throwable e){
        return new Response(-1,"出错啦！",null);
    }

}
